<template>
	<view>
		<view class="nav-top">
			<text @tap="toBack" class="iconfont icon-zuojiantou"></text>
			<text class="nav-tit">{{tit}}</text>
			<icon type="search" size="20" color="#89A5D9"></icon>
		</view>
	</view>
</template>

<script>
	export default {
		name:"navTop",
		data() {
			return {
				
			};
		},
		props:{
			tit:{
				type:String,
				default:''
			}
		},
		methods:{
			toBack(){
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss" scoped>
.nav-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 100rpx;
	background-color: #FFFFFF;
	
	.iconfont {
		font-weight: 800;
		font-size:38rpx;
		color: #89A5D9;
		margin-left: 20rpx;
	}
	.nav-tit {
		font-size: 30rpx;
		font-weight: 600;
	}
	icon{
		margin-right: 20rpx;
	}
}
</style>
